
#include <sys/mount.h>

int main(int argc, const char *argv[])
{
	const char *mpath = "/tmp/ram";

    // ignore errors
	umount(mpath);
	umount(mpath);
	umount2(mpath, 0);
	umount2(mpath, 0);

	mount("none", mpath, "ramfs", 0, NULL);

	return 0;
}
